<?php

$config[1] = array(
	'group_name' => '站点信息', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'site_name', 
			'desc' => '网站名称', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'description', 
			'desc' => '网站简介', 
			'type' => 'textarea', 
		), 
		array(
			'varname' => 'keywords', 
			'desc' => '网站关键词(以逗号隔开)', 
			'type' => 'textarea', 
		),
		array(
			'varname' => 'base_url', 
			'desc' => '网站首页 (最后不带 /)', 
			'type' => 'string', 
		),
		array(
			'varname' => 'upload_url', 
			'desc' => '上传目录外部访问 URL 地址', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'upload_dir', 
			'desc' => '上传文件存放绝对路径', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'img_url', 
			'desc' => 'static 目录资源 URL 地址 (最后不带 /, 留空使用根目录下的 static 资源)', 
			'type' => 'string', 
		), 
	)
);

$config[2] = array(
	'group_name' => '注册与访问', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'site_close', 
			'desc' => '关闭网站', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'close_notice', 
			'desc' => '关闭站点的提示', 
			'type' => 'textarea', 
		), 
		array(
			'varname' => 'register_seccode', 
			'desc' => '注册是否需要验证码', 
			'type' => 'bool', 
		),
		array(
			'varname' => 'register_email_reqire', 
			'desc' => '新用户注册需要邮件验证', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'invite_reg_only', 
			'desc' => '只允许通过邀请注册成为会员', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'register_agreement', 
			'desc' => '注册协议', 
			'type' => 'textarea', 
		), 
		array(
			'varname' => 'censoruser', 
			'desc' => '用户信息保留关键字', 
			'type' => 'textarea', 
		), 
		array(
			'varname' => 'def_focus_uids', 
			'desc' => '用户注册后默认关注的用户 ID', 
			'detail' => '多个用户ID请用逗号","隔开', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'newer_invitation_num', 
			'desc' => '新注册用户获得邀请数量', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'admin_login_seccode', 
			'desc' => '后台登录是否需要验证码', 
			'type' => 'bool', 
		),
	)
);

$config[3] = array(
	'group_name' => '站点功能', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'url_rewrite_enable', 
			'desc' => '开启 Rewrite 伪静态', 
			'detail' => 'Rewrite 开启方法请见 ReadMe 说明文件', 
			'type' => 'bool', 
			'status' => 0
		),
		array(
			'varname' => 'request_route', 
			'desc' => 'URL 自定义路由', 
			'type' => 'textarea', 
			'detail' => '此模式只有开启 Rewrite 后有效, 请填写简略正则表达式, 每行一条规则,中间使用===隔开,左边为站点默认 URL 模式,右边为替换后的 URL 模式, 链接以 / 开头, (:num) 代表数字, (:any) 代表任意字符<br />如替换问题规则与分类规则：<br />/question/(:any)===/q_(:any)<br />/home/explore/category-(:num)===/category/(:num)<br />将发现替换到首页:<br/>/home/explore/===/<br />(!) 警告: 使用此功能之前请确定你对替换有所把握, 错误的规则将导致站点不能运行', 
		),
		array(
			'varname' => 'ucenter_enabled', 
			'desc' => '开启 Ucenter 用户对接', 
			'detail' => '第一次使用需要安装 UCenter 扩展包', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'online_count_open', 
			'desc' => '开启在线会员统计', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'online_interval', 
			'desc' => '在线会员统计时间范围(单位:分钟)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'hot_user_period', 
			'desc' => '热门用户计算周期(单位:天)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'unread_flush_interval', 
			'desc' => '未读数刷新间隔时间(秒)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'statistic_code', 
			'desc' => '统计代码', 
			'type' => 'textarea', 
		)
	)
);

$config[4] = array(
	'group_name' => '问题设置', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'quick_publish', 
			'desc' => '开启快速发起问题', 
			'type' => 'bool', 
		),
		array(
			'varname' => 'answer_unique', 
			'desc' => '只允许用户对每个问题回复一次', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'answer_self_question', 
			'desc' => '允许用户回复自己的问题', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'answer_length_lower', 
			'desc' => '回复要求最少字数', 
			'detail' => '填写 0 则不限制字数', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'question_title_limit', 
			'desc' => '问题标题最大字符数限制', 
			'detail' => '填写 0 则不限制字数', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'comment_limit', 
			'desc' => '评论内容最大字数限制', 
			'detail' => '填写 0 则不限制字数', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'topic_title_limit', 
			'desc' => '话题标题最大字数限制', 
			'detail' => '填写 0 则不限制字数', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'uninterested_fold', 
			'desc' => '没有帮助数量达到多少个时折叠回复', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'best_answer_day', 
			'desc' => '自动选出最佳回复时间(单位:天)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'best_answer_min_count', 
			'desc' => '参与自动选出最佳回复的问题最小回复量', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'best_agree_min_count', 
			'desc' => '最佳回复最小赞同数量', 
			'type' => 'int', 
		)
	)
);

$config[6] = array(
	'group_name' => '用户权限', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'guest_explorer', 
			'desc' => '允许游客访问发现页面', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'upload_enable', 
			'desc' => '允许用户上传附件', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'upload_size_limit', 
			'desc' => '允许上传最大附件大小(单位:KB)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'upload_avatar_size_limit', 
			'desc' => '允许上传最大头像/话题图片大小(单位:KB)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'answer_edit_time', 
			'desc' => '回复编辑/删除有效时间 (单位:分钟)', 
			'type' => 'int', 
		)
	)
);

$config[7] = array(
	'group_name' => '邮件设置', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'email_type', 
			'desc' => '系统邮件发送方式', 
			'type' => 'select', 
		), 
		array(
			'varname' => 'smtp_server', 
			'desc' => 'SMTP 服务器', 
			'detail' => ' 如: smtp.163.com', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'smtp_ssl', 
			'desc' => '使用安全链接(SSL)连接服务器', 
			'detail' => '请根据服务商要求选择', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'smtp_port', 
			'desc' => 'SMTP 端口', 
			'detail' => '留空时默认服务器端口为 25，使用 SSL 协议默认端口为 465，详细参数请询问邮箱服务商', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'smtp_username', 
			'desc' => 'SMTP 帐户', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'smtp_password', 
			'desc' => 'SMTP 密码', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'from_email', 
			'desc' => '系统邮件来源邮箱地址', 
			'type' => 'string', 
		)
	)
);

$config[8] = array(
	'group_name' => '微博接入', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'sina_weibo_enabled', 
			'desc' => '开启新浪微博功能', 
			'detail' => 'AppKey 需要到新浪微博开放平台申请 (注意: 请申请网站不要申请应用)', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'qq_t_enabled', 
			'desc' => '开启腾讯微博功能', 
			'detail' => 'AppKey 需要到腾讯微博开放平台申请', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'sina_akey', 
			'desc' => '新浪微博 AppKey(akey)', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'sina_skey', 
			'desc' => '新浪微博 AppKey(skey)', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'qq_app_key', 
			'desc' => '腾讯微博 AppKey(app_key)', 
			'type' => 'string', 
		), 
		array(
			'varname' => 'qq_app_secret', 
			'desc' => '腾讯微博 AppKey(app_secret)', 
			'type' => 'string', 
		)
	)
);


$config[9] = array(
	'group_name' => '验证码设置', 
	'status' => -1, 
	'children' => array(
	)
);


$config[10] = array(
	'group_name' => '性能优化', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'cache_open', 
			'desc' => '开启系统缓存', 
			'detail' => '开启缓存可以极大降低服务器负载', 
			'type' => 'bool', 
		), 
		array(
			'varname' => 'cache_level_high', 
			'desc' => '缓存高级别缓存时间 (单位:秒)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'cache_level_normal', 
			'desc' => '缓存普通级别缓存时间 (单位:秒)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'cache_level_low', 
			'desc' => '缓存低级别缓存时间 (单位:秒)', 
			'type' => 'int', 
		)
	)
);


$config[11] = array(
	'group_name' => '界面设置', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'ui_style', 
			'desc' => '用户界面风格', 
			'type' => 'select', 
		), 
		array(
			'varname' => 'category_display_mode', 
			'desc' => '分类显示模式', 
			'type' => 'select', 
		),
		array(
			'varname' => 'index_per_page', 
			'desc' => '内容列表分页数 (首页, 最新动态)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'notifications_per_page', 
			'desc' => '内容列表分页数 (通知)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'contents_per_page', 
			'desc' => '内容列表分页数 (问题, 发现, 个人主页)', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'recommend_users_number', 
			'desc' => '推荐用户和话题数量', 
			'type' => 'int', 
		)
	)
);

$config[12] = array(
	'group_name' => '词语过滤', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'sensitive_words', 
			'desc' => '敏感词替换', 
			'detail' => '内容中出现以上词语将被替换成 * ，每行填写一个词',
			'type' => 'textarea', 
		),
	)
);

$config[13] = array(
	'group_name' => '用户威望', 
	'status' => 0, 
	'children' => array(
		array(
			'varname' => 'best_answer_reput', 
			'desc' => '最佳回复威望系数', 
			'type' => 'int', 
		), 
		array(
			'varname' => 'publisher_reputation_factor', 
			'desc' => '发起者赞同/反对威望系数', 
			'type' => 'int', 
		)
	)
);

$config[99] = array(
	'group_name' => '其它设置', 
	'status' => -1, 
	'children' => array(
		array(
			'varname' => 'answer_open', 
			'desc' => '用户是否允许回复问题', 
			'type' => 'bool', 
			'status' => - 1
		), 
	)
);


